﻿using Microsoft.SharePoint;
using SharePoint.Orm.Helpers;

namespace SharePoint.Orm.Metal.Model {
	public class ContentTypeLookupFieldInfo : ContentTypeFieldInfo {
		public ContentTypeLookupFieldInfo(CodeGeneratorConfiguration config, SiteInfo siteInfo, SPField field) :
			base(config, siteInfo, field) {
		}

		public string LookupFieldType {
			get { return _config.FieldTypeResolver.GetLookupFieldType(_siteInfo, (SPFieldLookup)_field); }
		}
	}
}
